.checkbox-component {
  width: 40px;
  height: 20px;
  border-radius: 10px;
  background-color: #dedede;
  box-sizing: content-box;
  border: 1px solid #c1abab;
  position: relative;
  user-select: none;
  cursor: pointer;
  transition: 0.3s;
  .checkbox {
    transition: 0.3s;
    width: 20px;
    height: 20px;
    background-color: white;
    right: 0;
    position: absolute;
    border-radius: 50%;
  }
  .unchecked {
    right: 20px;
  }
}
